home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Memphis Amiga Group / MAG DOS 2.0 Utilities Disk 01 (1991-09)(Memphis Amiga Group).zip / MAG DOS 2.0 Utilities Disk 01 (1991-09)(Memphis Amiga Group).adf / PointerX / PointerX.Docs < prev    next >
Text File  |  1991-08-16  |  2KB  |  54 lines

  1.  
  2. The Program
  3. -----------
  4. PointerX - Spins the hands of any pointer that looks like the 
  5. standard 2.0 Workbench Busy pointer.  PointerX only runs under
  6. Kickstart 2.0.
  7.  
  8. This means it will spin not just the WB pointer, but your programs
  9. too - If you use the right pointer.  The pointer as given below in
  10. Source is the one used by 2.0 WB (this data is from a posting on bix),
  11. and you can use it in your own programs too to get the same effect 
  12. there.
  13.  
  14. To install PointerX just drop it's icon in your WBStartup drawer 
  15. and reboot (or double-click on it) - and it will be active for the
  16. rest of the current session, or until you send it a Break signal.
  17.  
  18. That's all there is to it!
  19.  
  20. PointerX is written by Steve Tibbett, and is placed in the Public Domain.  
  21. You can reach me on PLINK as STEVEX, Bix as s.tibbett, Usenet as 
  22. cognos!alzabo!omx!stevex, on my BBS at 613-731-3419, or by Phone at 
  23. 613-731-5316 in the evenings.
  24.  
  25.  
  26. The Source
  27. ----------
  28. PointerX.c and Pointers.c compile under SAS/C 5.10a.  The program checks the
  29. pointer every two VBlanks, and if it's a busy pointer, it updates the
  30. image from one of the 32 whose data is in Pointers.c.
  31.  
  32. The Pointer
  33. -----------
  34. static USHORT __chip BusyPointerData[] = 
  35.     {
  36.     0x0000,0x0000,
  37.     0x0400,0x07C0,0x0000,0x07C0,0x0100,0x0380,0x0000,0x07E0,
  38.     0x07C0,0x1FF8,0x1FF0,0x3FEC,0x3FF8,0x7FDE,0x3FF8,0x7FBE,
  39.     0x7FFC,0xFF7F,0x7EFC,0xFFFF,0x7FFC,0xFFFF,0x3FF8,0x7FFE,
  40.     0x3FF8,0x7FFE,0x1FF0,0x3FFC,0x07C0,0x1FF8,0x0000,0x07E0,
  41.     0x0000,0x0000,
  42.     };
  43.  
  44. SetPointer(Win, BusyPointerData, 16, 16, -6, 0);
  45.  
  46. Use this call, and that data, to get the proper pointer and you'll look
  47. like a real 2.0 program (all good programs use a busy pointer when they
  48. don't accept user input - they also turn off all their window gadgets
  49. so the users don't get confused), and if PointerX is running, it's hands
  50. will spin!
  51.  
  52.  
  53.  
  54.